package nonogram;

public class RightBoundaryGroup extends Group {

	public RightBoundaryGroup(int size) {
		super(0);
		this.addSubGroup(new SubGroup(size, size));
		this.complete = true;
	}
	
	/**
	 * The first safe cell to the left not connected to this group.
	 * @return
	 */
	@Override
	public int getSafeBeforeStart() {
		return this.getStart() - 1;
	}
	
	/**
	 * The first safe cell to the right not connected to this group.
	 * @return
	 */
	@Override
	public int getSafeAfterEnd() {
		return -1;
	}
}
